package com.company.test.sync;

import java.util.concurrent.CountDownLatch;

/**
 * @author zhangyan
 * @version $ Id: countDownLatchDemo.java, v 0.1 2020/9/8 11:15 zhangyan Exp $
 */
public class CountDownLatchDemo {
    public static void main(String[] args) throws Exception{
        CountDownLatch latch = new CountDownLatch(10);
        latch.countDown();
        latch.await();

    }
}
